home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / LGP250S1.ZIP / src / libgplus.5 / libgplus / test-ins / foo_func.cc < prev    next >
C/C++ Source or Header  |  1992-05-14  |  243b  |  18 lines

  1. // test program for Class Foo
  2.  
  3. #include "Foo.h"
  4.  
  5. static Foo static_foo( "static_foo"); 
  6.  
  7. Foo f()
  8. {
  9.     Foo x;
  10.     return x;
  11. }
  12.  
  13. void g()
  14. {
  15.     Foo other_foo1 = Foo( "other_foo1"), other_foo2 = Foo( "other_foo2");
  16.     other_foo2 = other_foo1;
  17. }
  18.